<template>
  <div class="employee">
    <div class="sideNav">
      <div class="logo"><img src="../../assets/emp-logo.png" alt="" /></div>
      <AsideNav></AsideNav>
    </div>
    <div class="employee-content">
      <div class="emp-header-nav">
        <EmpHeader></EmpHeader>
      </div>
      <div class="emplpyee-main" style="overflow: auto">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script>
import AsideNav from '@/components/employee/AsideNav.vue'
import EmpHeader from '@/components/employee/EmpHeader'
export default {
  name: 'employeeIndex',
  components: {
    AsideNav,
    EmpHeader
  }
}
</script>

<style lang="less" scoped>
.employee {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100%;
  overflow: hidden;
//   border: 1px solid red;
}
.sideNav {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  overflow: hidden;
//   border: 1px solid red;
  // background-color: #8ebcd3;
  .logo {
  //  background-color: #8ebcd3;
   display: flex;
   justify-content: center;
   margin-right: 1px;
    img {
      vertical-align: middle;
      height: 57px;
      width: 50%;
    }
  }
}
.employee-content {
  width: 100%;
  margin-left: 128px;
  .emp-header-nav {
    width: 100%;
  }
  .emplpyee-main {
    width: 100%;
    height: calc(100vh - 50px);
    overflow-y: auto;
  }
}
</style>
